package com.joysuch.wwyt.core.repository;

import com.joysuch.wwyt.core.entity.BaseEvaluationIndicators;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.querydsl.QuerydslPredicateExecutor;

public interface BaseEvaluationIndicatorsDao extends JpaRepository<BaseEvaluationIndicators, Long> {

    @Query(value = "SELECT ID FROM wwyt_base_evaluation_indicators WHERE NAME =?1", nativeQuery = true)
    Long findIdByName(String name);

}
